import { createStore } from 'redux'
import rootReducer from './redusers-index.jsx'

export default function configureState(initalState) {
    const store = createStore(rootReducer, initalState,
        window.devToolsExtension ? window.devToolsExtension() : undefined
    )
    return store
}